package com.tssup.fesco.service;

import com.tssup.fesco.sales.ofc.persistent.pojo.OfcIOrderInfo;

import java.util.List;

/**
 * Created by haomin on 2017/3/31.
 */
public interface OfcOrderLogService {

    /**
     * 保存订单状态跟踪信息
     * @param orderId 订单编码
     * @param orderStatus 订单状态
     * @param remark 备注
     * @throws Exception
     */
    void saveOrderTraceingInfo(String orderId, Integer orderStatus, String operator, String remark) throws Exception;

    /**
     * 批量保存订单状态跟踪信息
     * @param orderIds
     * @param orderStatus
     * @param operator
     * @param remark
     * @throws Exception
     */
    void batchSaveOrderTraceingInfo(List<String> orderIds, Integer orderStatus, String operator, String remark) throws Exception;

    /**
     * 保存订单改动到日志表
     * @param orderInfo
     * @param content
     * @param remark
     * @param isManual
     */
    void saveSysLog(OfcIOrderInfo orderInfo, String orderId, String content, String remark, boolean isManual) throws Exception;

    /**
     * 批量保存订单改动到日志表
     * @param orderInfos
     * @param orderIds
     * @param content
     * @param remark
     * @param isManual
     * @throws Exception
     */
    void batchSaveSysLog(List<OfcIOrderInfo> orderInfos, List<String> orderIds, String content, String remark, boolean isManual) throws Exception;

}
